<template>
    <!-- 处理item子组件 -->
    <div class="conditionCard" @click="ndatac">
        <Row class="top">
            <Col span=6 class="conditionClass">{{pending.TYPE_CONTENT}}</Col>
            <Col span=16 offset=1 class="title">{{pending.EVENT_TITLE}}</Col>
        </Row>
        <Row class="time">
            <Col span=24>{{pending.CREATETIME}}</Col>
        </Row>
        <div class="content">
            <p>{{pending.EVENT_CONTENT}}</p>
        </div>
        <div class="progress">
            <Progress v-if="false">
                <Icon type="checkmark-circled"></Icon>
                <span>已完结</span>
            </Progress>
            <Progress v-if="pending.EVENT_STATUS === 0" :percent="pending.COUNT">
                <span style="color: #ed3f14">{{pending.EVENT_STATUS_NAME}}&nbsp;&nbsp;{{pending.COUNT}}%</span>
            </Progress>
            <Progress v-if="pending.EVENT_STATUS === 1" :percent="pending.COUNT">
                <span style="color: #0093dd">{{pending.EVENT_STATUS_NAME}}&nbsp;&nbsp;{{pending.COUNT}}%</span>
            </Progress>
            <div class="pingjia">
                <Progress v-if="pending.EVENT_STATUS === 2" :percent="pending.COUNT" >
                <span style="color: #ff9900">{{pending.EVENT_STATUS_NAME}}</span>
                </Progress>
            </div>
            <Progress v-if="pending.EVENT_STATUS === 3" :percent="pending.COUNT">
                <span>{{pending.EVENT_STATUS_NAME}}</span>
            </Progress>
        </div>
    </div>
</template>

<script>
export default {
    props: ['pending'],
    data() {
        return {
            pinchzoom: this.pending
        }
    },
    methods: {
        ndatac() {
            this.$emit('nd')
        }
    }
}
</script>

<style lang="less">
 .conditionCard{
        width: 100%;
        padding-left: 20px;
        background-color: #fff;
        border-bottom: 1px solid #E4E4E4;
        .top{
            padding: 10px 0;
            .conditionClass{
                display: inline-block;
                height: 30px;
                padding: 0 10px;
                border-radius:5px;
                background-color: #7ecef4;
                color: #fff;
                line-height: 30px;
                letter-spacing: 1px;
                text-align: center;
            }
            .title{
                display: inline-block;
                height: 30px;
                font-size: 15px;
                line-height: 30px;
                font-weight: bold;
                overflow: hidden;
                text-overflow:ellipsis;
                white-space: nowrap;
            }
        }
        .time{
            color: #999999;
            font-size: 13px;
            padding-bottom: 10px;
            border-bottom: 1px solid #eaeaea;
        }
        .content{
            padding: 20px  10px 20px 0;
            text-indent: 2em;
            border-bottom: 1px solid #eaeaea;
            font-size: 14px;
            word-wrap: break-word;
        }
        .progress{
            padding: 20px 0;
            width:100%;
            .pingjia{
                .ivu-progress-inner{
                    background-color: #ff9900 !important;
                }
                .ivu-progress-success .ivu-progress-bg {
                    background-color:#ff9900!important;
                }
            }
            .ivu-progress-outer{
                width:95% !important;
            }
        }
    }
</style>
